#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int a[10] ;
	int i;
	int cnt = 0, cat = 0;
	for (i = 0; i < 10; i++)
	{
		scanf("%d", &a[i]);
		if (a[i] > 0) cnt++;
		else if (a[i] < 0) cat++;
	}
	printf("positive:%d\nnegative:%d\n", cnt, cat);

	return 0;
}